import requests
import re

url = 'http://www.weather.com.cn/weather1d/101010100.shtml'
res = requests.get(url)
res.encoding = 'utf-8'
#print(res.text)

city = re.findall('<span class="name">([\u4e00-\u9fa5]*)</span>', res.text)
weather = re.findall('<span class="weather">([\u4e00-\u9fa5]*)</span>', res.text)
wd = re.findall('<span class="wd">(.*)</span>', res.text)
zs = re.findall('<span class="zs">([\u4e00-\u9fa5]*)</span>', res.text)
print(city)
print(weather)
print(wd)
print(zs)
print('-'*20)
lst = []
for a,b,c,d in zip(city, weather, wd, zs):
    lst.append([a,b,c,d])
for item in lst:
    print(item)

url1 = 'https://pss.bdstatic.com/static/superman/img/logo/logo_white-d0c9fe2af5.png'
res1 = requests.get(url1)

with open('logo.png', 'wb') as f:
    f.write(res1.content)

url2 = 'https://i.tq121.com.cn/i/picList/wf_spring_h.jpg'
res2 = requests.get(url2)

with open('logo.jpg', 'wb') as f:
    f.write(res2.content)